package com.airsystem.pos.bengkel.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author Fanny Irawan Sutawanir (fannyirawans@gmail.com)
 */

@Entity
@Table(name = "tbl_layanan")
public class Layanan implements Serializable {

	@Transient
	public static final String ALIAS = "layanan";

	@Id
	@GeneratedValue
	private Long id;

	private String nama;

	@OneToMany(mappedBy = "layanan")
	private Set<DetailLayanan> detail_layanan = new HashSet<DetailLayanan>(0);

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getNama() {
		return nama;
	}

	public void setNama(String nama) {
		this.nama = nama;
	}

	public Set<DetailLayanan> getDetail_layanan() {
		return detail_layanan;
	}

	public void setDetail_layanan(Set<DetailLayanan> detail_layanan) {
		this.detail_layanan = detail_layanan;
	}
}